import request from "@/utils/request";


/**
 * 获取时间统计数据
 * @returns {Promise<unknown>}
 */
export function getTimeInfo(){
  return request({
    url: '/statistics/getTimeInfo',
    method: 'get',
  })
}

/**
 * 获取统计数据
 * @returns {Promise | Promise<unknown>}
 */
export function getIndex(params = {}){
  return request({
    url: '/statistics/index',
    method: 'get',
    params
  })
}

/**
 * 店铺维度
 * @param params
 * @returns {Promise | Promise<unknown>}
 */
export function accountIndex(params = {}){
  return request({
    url: '/statistics/accountIndex',
    method: 'get',
    params
  })
}
